import request from '@/utils/request'

// 查询物料进货台账类型列表
export function listMaterialLedgerType(query) {
  return request({
    url: '/cost/materialLedgerType/list',
    method: 'get',
    params: query
  })
}

// 查询物料进货台账类型所有列表
export function listAllMaterialLedgerType(query) {
  return request({
    url: '/cost/materialLedgerType/listAll',
    method: 'get',
    params: query
  })
}

// 查询物料进货台账类型详细
export function getMaterialLedgerType(id) {
  return request({
    url: '/cost/materialLedgerType/getInfo/' + id,
    method: 'get'
  })
}

// 新增物料进货台账类型
export function addMaterialLedgerType(data) {
  return request({
    url: '/cost/materialLedgerType/add',
    method: 'post',
    data: data
  })
}

// 修改物料进货台账类型
export function updateMaterialLedgerType(data) {
  return request({
    url: '/cost/materialLedgerType/edit',
    method: 'post',
    data: data
  })
}

// 删除物料进货台账类型
export function delMaterialLedgerType(id) {
  return request({
    url: '/cost/materialLedgerType/remove/' + id,
    method: 'get'
  })
}
